package com.ithaipeng.redanttakeaway;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@ServletComponentScan//加上这个注解就能扫描到过滤器
@Slf4j
@EnableTransactionManagement
public class RedAntTakeAwayApplication {
    public static void main(String[] args) {
        System.out.println("http://localhost:8080/backend/page/login/login.html");
        System.out.println("http://localhost:8080/front/page/login.html");
        SpringApplication.run(RedAntTakeAwayApplication.class, args);
        log.info("启动成功");
    }

}
